<?php

abstract class Mozg_Router_Router
{
	public function __construct()
	{

	}

	public function Build(array &$elements = array())
	{
		
	}
	
	public function Parse()
	{
		
	}
	
	public function BuildDefault(array &$elements = array())
	{
		$segments = array();
		
		if (isset($elements['action'])) 
		{
			$segments[] = $elements['action'];
			unset($elements['action']);
		}
					 
		return $segments;
	} 

	public function ParseDefault(array &$segments = array())
	{
		$elements = array();
		
		if (isset($segments[0]))
		{
			$elements['action'] = array_shift($segments);
		}
		
		return $elements;
	}	
}